package com.itheima.test4_2;

public class Test {
    public static void main(String[] args) {

        //创建5个线程，表示5个人抢红包
        MyThread t1=new MyThread();
        MyThread t2=new MyThread();
        MyThread t3=new MyThread();
        MyThread t4=new MyThread();
        MyThread t5=new MyThread();
        //设置名字
        t1.setName("A");
        t2.setName("B");
        t3.setName("C");
        t4.setName("D");
        t5.setName("E");
        //启动线程
        t1.start();
        t2.start();
        t3.start();
        t4.start();
        t5.start();

    }
}
